using UnityEngine;

namespace UnityX
{
    [DisallowMultipleComponent]
    [AddComponentMenu("Animation/UI Rotate Simple")]
    public class UIRotateSimple : MonoBehaviour
    {
        public float speed = -180;
        protected void Update()
        {
            float st = 0.016f;
            if (Time.deltaTime < 0.16f)
            {
                st = Time.deltaTime;
            }
            transform.Rotate(0, 0, speed * st);
        }
    }
}